import request from '@/utils/request'

// 提交订单
export function orderSubmit(data) {
    return request({
        url: '/mall/order/submit',
        method: 'post',
        data: data
    })
}

// 订单列表
export function orderList(data) {
    return request({
        url: '/mall/order/list',
        method: 'post',
        data: data
    })
}

// 订单详情
export function orderDetail(data) {
    return request({
        url: '/mall/order/detail',
        method: 'post',
        data: data
    })
}

// 取消订单
export function orderCancel(data) {
    return request({
        url: '/mall/order/detail',
        method: 'post',
        data: data
    })
}

// 确认收货
export function orderConfirm(data) {
    return request({
        url: '/mall/order/confirmOrder',
        method: 'post',
        data: data
    })
}
